package com.ruoyi.message.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 动态对象 message_info
 * 
 * @author hct
 * @date 2022-04-14
 */
@Data
public class MessageInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 地址 */
    @Excel(name = "地址")
    private String address;

    /** 公司id */
    @Excel(name = "公司id")
    private Long companyId;

    /** 城市 */
    @Excel(name = "城市")
    private String city;

    /** 收藏数 */
    @Excel(name = "收藏数")
    private Integer collectnum;

    /** 内容 */
    @Excel(name = "内容")
    private String content;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Date createDate;

    /** 图片集合 */
    @Excel(name = "图片集合")
    private String imgs;

    /** 经纬度 */
    @Excel(name = "经纬度")
    private String latlng;

    /** logo */
    @Excel(name = "logo")
    private String logo;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Integer messageStatus;

    /** 阅读数 */
    @Excel(name = "阅读数")
    private Integer readnum;

    /** 分享数 */
    @Excel(name = "分享数")
    private Integer sharenum;

    /** 状态0是正常1是删除 */
    @Excel(name = "状态0是正常1是删除")
    private Integer status;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Date updateDate;

    /** 点赞数 */
    @Excel(name = "点赞数")
    private Integer zannum;

    /** 发布人 */
    @Excel(name = "发布人")
    private Long memberId;
    private String memberName;
    private String memberImg;

    /** 评论数 */
    @Excel(name = "评论数")
    private Integer replynum;

    /** 类型0是动态1是资源 2是需求 */
    @Excel(name = "类型0是动态1是资源 2是需求")
    private Integer type;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("address", getAddress())
            .append("companyId", getCompanyId())
            .append("city", getCity())
            .append("collectnum", getCollectnum())
            .append("content", getContent())
            .append("createDate", getCreateDate())
            .append("imgs", getImgs())
            .append("latlng", getLatlng())
            .append("logo", getLogo())
            .append("messageStatus", getMessageStatus())
            .append("readnum", getReadnum())
            .append("sharenum", getSharenum())
            .append("status", getStatus())
            .append("updateDate", getUpdateDate())
            .append("zannum", getZannum())
            .append("memberId", getMemberId())
            .append("replynum", getReplynum())
            .append("type", getType())
            .toString();
    }
}
